package com.sdy.dao.mysql;

import com.sdy.po.Authority;
import org.apache.ibatis.annotations.*;

@Mapper
public interface AuthorityMapper {

    @Select("select * from s_authority where userId = #{id}")
    Authority selectAuthorityByUserId(@Param("id") Integer id);

    @Select("select * from s_authority where menuId = #{id}")
    Authority selectAuthorityByMenuId(@Param("id") Integer id);
}
